﻿using System.Collections.Generic;

namespace DtoFw.Query
{


    public class UserInfoQuery : BaseQuery
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string UserNo { get; set; }
        /// <summary>
        /// 警号
        /// </summary>
        public string PoliceNo { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }
    }
    public class PutPwdQuery : BaseOperator
    {
        /// <summary>
        /// 老密码
        /// </summary>
        public string OldPwd { get; set; }
        /// <summary>
        /// 新密码
        /// </summary>
        public string Pwd { get; set; }
    }
    public class RestPwdQuery : BaseOperator
    {
        /// <summary>
        /// 新密码
        /// </summary>
        public string Pwd { get; set; }
        /// <summary>
        /// 用户Id
        /// </summary>
        public List<long> UserIds { get; set; }
    }
    public class MianUserQuery:BaseQuery
    {
        public int Status { get; set; }
    }
    /// <summary>
    /// 查询菜单
    /// </summary>
    public class MenuQuery : BaseQuery
    {
        public long UserId { get; set; } = 0;
        public long RoleId { get; set; } = 0;
        public int MenuType { get; set; }
        public string ParentName { get; set; }
        public int MenuId { get; set; }
        public string Level { get; set; }
    }
    /// <summary>
    /// 菜单级别列表
    /// </summary>
    public class MenuLevelResult
    {
        public long Id { get; set; }
        public string MenuName { get; set; }
    }
    /// <summary>
    /// 菜单信息
    /// </summary>
    public class MenuInfo:BaseOperator
    {
        public string Title { get; set; }
        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 菜单级别0/1/2/3
        /// </summary>
        public int Level { get; set; } = 0;
        /// <summary>
        /// 父Id
        /// </summary>
        public long ParentId { get; set; } = 0;
        /// <summary>
        /// 菜单地址
        /// </summary>
        public string Url { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 系统ID
        /// </summary>
        public int SystemId { get; set; } = 0;
        /// <summary>
        /// 菜单类别
        /// </summary>
        public int Type { get; set; } = 0;
        /// <summary>
        /// 图标地址
        /// </summary>
        public string Icon { get; set; } = "";

        public string Component { get; set; }
        /// <summary>
        /// 菜单描述
        /// </summary>
        public string Description { get; set; } = "";
        public string IsLink { get; set; }
        public bool IsHide { get; set; } = false;
        public bool IsKeepAlive { get; set; } = false;
        public bool IsAffix { get; set; } = false;
        public string LinkPath { get; set; }
        public string Auth { get; set; }
    }

    /// <summary>
    /// 菜单编辑信息
    /// </summary>
    public class MenuEditInfo: MenuInfo
    {
        public long Id { get; set; }
       
    }


    public class RefreshTokenQuery 
    {
        public string refreshToken { get; set; }
    }

    /// <summary>
    /// 用户登录
    /// </summary>
    public class MainUserLoginQuery
    {
        public string username { get; set; }
        public string password { get; set; }

        /// <summary>
        /// 登录标志1账号密码2短信验证码
        /// </summary>
        public int LoginType { get; set; } = 1;
    }
    /// <summary>
    /// H5用户登录
    /// </summary>
    public class H5UserLoginQuery
    {
        public string Phone { get; set; }
        public string Code { get; set; }
    }
}
